from django.urls import re_path,path
from rest_framework.urlpatterns import format_suffix_patterns
# from ..views.views_cbv import ArticleList,ArticleDetail
from ..views import views_cbv_viewset as views

from django.urls import re_path,include
from rest_framework.urlpatterns import format_suffix_patterns
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register(r'articles', viewset=views.ArticleViewSet)
router.register(r'users', viewset=views.UserViewSet)
router.register(r'fileupload', viewset=views.FileUploadViewSet)

urlpatterns = [
    # re_path(r'^articles/$', views.ArticleList.as_view()),
    # re_path(r'^articles/(?P<pk>[0-9]+)$', views.ArticleDetail.as_view()),
    
]
# urlpatterns = format_suffix_patterns(urlpatterns)
urlpatterns += router.urls

# print(urlpatterns)